<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 模板字符串插值 - ${ }
      const str = `你今年${1 + 1}岁啦`
      console.log(str) // 2

      const key = 'bb'
      const obj = {
        name: 'zs',
        // 👍 对象键名称的插值符号：[]    可以实现对象键名称的动态设置
        [key]: 18,
      }

      console.log(obj)
    </script>
  </body>
</html>
